home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / shareware / share_41 / assembler / examples / asl2 < prev    next >
Text File  |  1991-05-14  |  256b  |  14 lines

  1. ; NAME       asl2
  2. ; PURPOSE    performs an asl by a given number of bits
  3. ; DESIGN    
  4. ;            copy number1, number2 to r6, r7
  5. ;            shift it left
  6. ;            store result in number3
  7.  
  8.  
  9.  
  10. ldr r6, [r1]
  11. ldr r7, [r2]
  12. mov r6, r6, asl r7
  13. str r6, [r3]
  14.